package com.park.service.impl.app;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.park.client.model.app.AppVersionModel;
import com.park.client.service.app.AppVersionService;
import com.park.dao.app.AppVersionMapper;
import com.park.service.impl.base.BaseServiceImpl;

@Service("appVersionService")
public class AppVersionServiceImpl extends BaseServiceImpl<AppVersionModel> implements AppVersionService {
	
	@Autowired
	private AppVersionMapper appVersionMapper;

	@Override
	public boolean deleteByPrimaryKey(Long id) {
		return appVersionMapper.deleteByPrimaryKey(id)==1;
	}

	@Override
	public boolean insert(AppVersionModel record) {
		return appVersionMapper.insert(record)==1;
	}

	@Override
	public boolean insertSelective(AppVersionModel record) {
		return appVersionMapper.insertSelective(record)==1;
	}

	@Override
	public AppVersionModel selectByPrimaryKey(Long id) {
		return appVersionMapper.selectByPrimaryKey(id);
	}

	@Override
	public boolean updateByPrimaryKeySelective(AppVersionModel record) {
		return appVersionMapper.updateByPrimaryKeySelective(record)==1;
	}

	@Override
	public boolean updateByPrimaryKeyWithBLOBs(AppVersionModel record) {
		return appVersionMapper.updateByPrimaryKeyWithBLOBs(record)==1;
	}

	@Override
	public boolean updateByPrimaryKey(AppVersionModel record) {
		return appVersionMapper.updateByPrimaryKey(record)==1;
	}

	@Override
	public List<AppVersionModel> selectAll() {
		return appVersionMapper.selectAll();
	}

	@Override
	public AppVersionModel selectLatestVersion() {
		return appVersionMapper.selectLatestVersion();
	}

	@Override
	public Integer selectTotalDown() {
		return appVersionMapper.selectTotalDown();
	}

	@Override
	public List<AppVersionModel> selectPagination(AppVersionModel t) {
		return appVersionMapper.selectPagination(t);
	}

	@Override
	public Integer selectTotal(AppVersionModel t) {
		return appVersionMapper.selectTotal(t);
	}

	

}
